package com.whpu.mapper;

import com.whpu.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
public interface UserMapper {
    // @Select("select * from user")
    List<User> findAll();

    //@Insert("insert into user values(null,#{username},#{password})")
    void save(User user);

    List<User> findAll(RowBounds rowBounds);
}
